Klasse AttributeDifference<T>

java.lang.Object
com.inet.pdfc.generator.model.diff.AttributeDifference<T>
Typparameter:
T - the type of the value which has a difference
Alle implementierten Schnittstellen:
Serializable, Comparable<AttributeDifference<?>>

@JsonData public abstract class AttributeDifference<T> extends Object implements Comparable<AttributeDifference<?>>, Serializable
Basic class for difference descriptions
Seit:
3.0
Siehe auch:
  • Konstruktordetails

    • AttributeDifference

      public AttributeDifference(AttributeDifference.TYPE instanceType, T oldValue, T newValue, String messageKey)
      Creates an instance with an old and a new value and sets the instanceType and the messageKey
      Parameter:
      instanceType - the instance type
      oldValue - the old value
      newValue - the new value
      messageKey - the message key
      Seit:
      3.0
  • Methodendetails

    • getMessage

      public String getMessage()
      Returns the log message for this difference
      Gibt zurück:
      the log message for this difference, never null
      Seit:
      3.0
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object
    • compareTo

      public int compareTo(AttributeDifference<?> o)
      Angegeben von:
      compareTo in Schnittstelle Comparable<T>
    • getOldValue

      public T getOldValue()
      Returns the value of the compared property in the first document
      Gibt zurück:
      the value of the compared property in the first document
      Seit:
      3.0
    • getNewValue

      public T getNewValue()
      Returns the value of the compared property in the second document
      Gibt zurück:
      the value of the compared property in the second document
      Seit:
      3.0
    • getInstanceType

      public AttributeDifference.TYPE getInstanceType()
      Returns the type of this instance. This type is the only information about the actual type of the difference if the model was JSON serialized
      Gibt zurück:
      the instanceType, not null
      Seit:
      4.0
    • getOldValueDescriptor

      public String getOldValueDescriptor()
      Returns the descriptor for the old value, which is the formatted old value object
      Gibt zurück:
      the descriptor for the old value
      Seit:
      4.0
    • getNewValueDescriptor

      public String getNewValueDescriptor()
      Returns the descriptor for the new value, which is the formatted new value object
      Gibt zurück:
      the descriptor for the new value
      Seit:
      4.0